JavaScript
{dialog.object}setKey Method
Syntax
{dialog.Object}.setKey(alias, value [, row]);
Arguments
- aliasstring
The specified table alias.
- valuearray
An array specifying the primary key value to set. The key value is always a Javascript array of character data (even if the primary key is a single column). If value is set to '__undefinedkey__' the key is deleted.
- rownumber
Optional. The table alias or a row in a repeating section, depends on source data. If row is not specified, the alias is a top level alias. Otherwise, row indicates the row in a Repeating Section.
Description
If the UX has been bound to tables, sets the primary key value for the specified table alias.
Example
//Set the primary key for the INVOICE_ITEMS alias in row 3 of the Repeating Section to ['23','11']. {dialog.Object}.setKey('INVOICE_ITEMS',['23','11'],3);
See Also